package com.feng.system.dto;

import com.feng.common.validation.constraints.RoleLevel;
import com.feng.common.validation.groups.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 增/改 某个角色的信息的参数
 * @author Feng
 * @since 2022/4/20 16:05
 */
@Data
public class RoleParam {

    @ApiModelProperty("角色ID")
    @NotNull(message = "请指定要修改的角色的ID", groups = Update.class)
    private Long roleId;

    @NotBlank(message = "角色名不能为空")
    @ApiModelProperty("角色名")
    private String roleName;

    @RoleLevel
    @NotNull(message = "角色等级不能为空")
    @ApiModelProperty("角色等级")
    private Integer level;
}
